<?php
class Zendvn_View_Helper_CmsError extends Zend_View_Helper_Abstract{
	
		
	public function cmsError($name = null, $value = '#',$attribs = null, $options = null ){
		
		$iconDir = $attribs['iconDir'];
		if(empty($iconDir))$iconDir = "images/small-icons/";
		
		$icon = $attribs['icon'];
		if(empty($icon)) $icon = 'error.png';
			
		$src = $iconDir . $icon;
		
		$id = $name . '-error';
		
		
		$xhtml = '<div  title="' . $value . '" id="' . $id . '" style="margin: 2px 0px 0px 4px; float: left; ">
					<img src="' . $src .'" >
				</div>';

		return $xhtml;
	}
}